package com.jdjr.drools.demo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;

@Getter
@Setter
@ToString
public class TypedCashflow extends Cashflow {
    public static final int CREDIT = 0;
    public static final int DEBIT = 1;

    private int type;

    public TypedCashflow() {
    }

    public TypedCashflow(Date date, int type, double amount) {
        super(date, amount);
        this.type = type;
    }

}
